package com.smartwasser.yunhtgl.apphtgl.base;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;

public abstract class BasePager extends Activity implements View.OnClickListener {
    public View view;
    public Context context;

    public BasePager(Context context) {
        this.context = context;
    }

    public View getRotorView() {
        view = initView();
        return view;
    }

    public abstract View initView();

    public abstract void initData();

    public void startActivity(Class<?> cls) {
        Intent intent = new Intent(context, cls);
        context.startActivity(intent);
    }
}
